PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Geometric / Wire Morph / akish - churning.milk
| 1 | MILKDROP_PRESET_VERSION=201 |
| 2 | PSVERSION=3 |
| 3 | PSVERSION_WARP=2 |
| 4 | PSVERSION_COMP=3 |
| 5 | [preset00] |
| 6 | fRating=5.000000 |
| 7 | fGammaAdj=1.000 |
| 8 | fDecay=1.000 |
| 9 | fVideoEchoZoom=1.072 |
| 10 | fVideoEchoAlpha=0.000 |
| 11 | nVideoEchoOrientation=0 |
| 12 | nWaveMode=2 |
| 13 | bAdditiveWaves=0 |
| 14 | bWaveDots=1 |
| 15 | bWaveThick=0 |
| 16 | bModWaveAlphaByVolume=0 |
| 17 | bMaximizeWaveColor=0 |
| 18 | bTexWrap=0 |
| 19 | bDarkenCenter=0 |
| 20 | bRedBlueStereo=0 |
| 21 | bBrighten=0 |
| 22 | bDarken=1 |
| 23 | bSolarize=0 |
| 24 | bInvert=0 |
| 25 | fWaveAlpha=0.001 |
| 26 | fWaveScale=0.012 |
| 27 | fWaveSmoothing=0.900 |
| 28 | fWaveParam=0.000 |
| 29 | fModWaveAlphaStart=0.750 |
| 30 | fModWaveAlphaEnd=0.950 |
| 31 | fWarpAnimSpeed=0.626 |
| 32 | fWarpScale=1.331 |
| 33 | fZoomExponent=1.00000 |
| 34 | fShader=0.000 |
| 35 | zoom=0.99951 |
| 36 | rot=0.00000 |
| 37 | cx=0.500 |
| 38 | cy=0.500 |
| 39 | dx=0.00000 |
| 40 | dy=0.00000 |
| 41 | warp=0.08925 |
| 42 | sx=1.00000 |
| 43 | sy=1.00000 |
| 44 | wave_r=0.500 |
| 45 | wave_g=0.400 |
| 46 | wave_b=0.300 |
| 47 | wave_x=0.500 |
| 48 | wave_y=0.500 |
| 49 | ob_size=0.500 |
| 50 | ob_r=0.010 |
| 51 | ob_g=0.000 |
| 52 | ob_b=0.000 |
| 53 | ob_a=0.000 |
| 54 | ib_size=0.260 |
| 55 | ib_r=0.250 |
| 56 | ib_g=0.250 |
| 57 | ib_b=0.250 |
| 58 | ib_a=0.000 |
| 59 | nMotionVectorsX=64.000 |
| 60 | nMotionVectorsY=48.000 |
| 61 | mv_dx=0.000 |
| 62 | mv_dy=0.000 |
| 63 | mv_l=5.000 |
| 64 | mv_r=0.000 |
| 65 | mv_g=0.000 |
| 66 | mv_b=0.000 |
| 67 | mv_a=0.000 |
| 68 | b1n=0.000 |
| 69 | b2n=0.000 |
| 70 | b3n=0.000 |
| 71 | b1x=1.000 |
| 72 | b2x=1.000 |
| 73 | b3x=1.000 |
| 74 | b1ed=0.250 |
| 75 | wavecode_0_enabled=1 |
| 76 | wavecode_0_samples=512 |
| 77 | wavecode_0_sep=0 |
| 78 | wavecode_0_bSpectrum=0 |
| 79 | wavecode_0_bUseDots=0 |
| 80 | wavecode_0_bDrawThick=1 |
| 81 | wavecode_0_bAdditive=0 |
| 82 | wavecode_0_scaling=1.00000 |
| 83 | wavecode_0_smoothing=0.50000 |
| 84 | wavecode_0_r=1.000 |
| 85 | wavecode_0_g=1.000 |
| 86 | wavecode_0_b=1.000 |
| 87 | wavecode_0_a=1.000 |
| 88 | wave_0_per_frame1=t1=sin(time*0.22)*0.5+0.5; |
| 89 | wave_0_per_frame2=t2=sin(time*0.17)*0.5+0.5 |
| 90 | wave_0_per_frame3= |
| 91 | wave_0_per_point1=n=sample*6.283; |
| 92 | wave_0_per_point2= |
| 93 | wave_0_per_point3=xp= sin(n) * (sin(n*2)*0.5+0.5); |
| 94 | wave_0_per_point4=yp= cos(n) * (cos(n*(t1*3+1))*0.5+0.5); |
| 95 | wave_0_per_point5=zp= 0; |
| 96 | wave_0_per_point6= |
| 97 | wave_0_per_point7=ang=n*16*t2 + n; |
| 98 | wave_0_per_point8=sang=sin(ang);cang=cos(ang); |
| 99 | wave_0_per_point9=xq=xp; |
| 100 | wave_0_per_point10=yq=yp*sang + zp*cang; |
| 101 | wave_0_per_point11=zq=yp*cang - zp*sang; |
| 102 | wave_0_per_point12=xp=xq;yp=yq;zp=zq; |
| 103 | wave_0_per_point13= |
| 104 | wave_0_per_point14= |
| 105 | wave_0_per_point15=ang=time*0.2; |
| 106 | wave_0_per_point16=sang=sin(ang);cang=cos(ang); |
| 107 | wave_0_per_point17=xq=xp; |
| 108 | wave_0_per_point18=yq=yp*sang + zp*cang; |
| 109 | wave_0_per_point19=zq=yp*cang - zp*sang; |
| 110 | wave_0_per_point20=xp=xq;yp=yq;zp=zq; |
| 111 | wave_0_per_point21= |
| 112 | wave_0_per_point22=ang=time*0.11; |
| 113 | wave_0_per_point23=sang=sin(ang);cang=cos(ang); |
| 114 | wave_0_per_point24=xq=xp*sang + zp*cang; |
| 115 | wave_0_per_point25=yq=yp; |
| 116 | wave_0_per_point26=zq=xp*cang - zp*sang; |
| 117 | wave_0_per_point27=xp=xq;yp=yq;zp=zq; |
| 118 | wave_0_per_point28= |
| 119 | wave_0_per_point29= |
| 120 | wave_0_per_point30=zp=zp+4.1; |
| 121 | wave_0_per_point31=x=xp/zp + 0.5; |
| 122 | wave_0_per_point32=y=yp/zp*1.333 + 0.5; |
| 123 | wave_0_per_point33= |
| 124 | wave_0_per_point34=s=sample*2 + time; |
| 125 | wave_0_per_point35=rr= s - int(s); |
| 126 | wave_0_per_point36=rr=rr*2; |
| 127 | wave_0_per_point37=rr= if(above(rr,1), 1-rr , rr); |
| 128 | wave_0_per_point38=r=rr; |
| 129 | wave_0_per_point39= |
| 130 | wave_0_per_point40=s=sample*2.3 + time; |
| 131 | wave_0_per_point41=gg= s - int(s); |
| 132 | wave_0_per_point42=gg=gg*2; |
| 133 | wave_0_per_point43=gg= if(above(gg,1), 1-gg , gg); |
| 134 | wave_0_per_point44=g=gg; |
| 135 | wave_0_per_point45= |
| 136 | wave_0_per_point46=s=sample*2.6 + time; |
| 137 | wave_0_per_point47=bb= s - int(s); |
| 138 | wave_0_per_point48=bb=bb*2; |
| 139 | wave_0_per_point49=bb= if(above(bb,1), 1-bb , bb); |
| 140 | wave_0_per_point50=b=bb |
| 141 | wavecode_1_enabled=1 |
| 142 | wavecode_1_samples=512 |
| 143 | wavecode_1_sep=0 |
| 144 | wavecode_1_bSpectrum=0 |
| 145 | wavecode_1_bUseDots=0 |
| 146 | wavecode_1_bDrawThick=1 |
| 147 | wavecode_1_bAdditive=0 |
| 148 | wavecode_1_scaling=1.00000 |
| 149 | wavecode_1_smoothing=0.50000 |
| 150 | wavecode_1_r=1.000 |
| 151 | wavecode_1_g=1.000 |
| 152 | wavecode_1_b=1.000 |
| 153 | wavecode_1_a=1.000 |
| 154 | wave_1_per_frame1=t1=sin(time*0.22)*0.5+0.5; |
| 155 | wave_1_per_frame2=t2=sin(time*0.17)*0.5+0.5 |
| 156 | wave_1_per_frame3= |
| 157 | wave_1_per_point1=n=sample*6.283; |
| 158 | wave_1_per_point2= |
| 159 | wave_1_per_point3=xp= sin(n) * (sin(n*2)*0.5+0.5); |
| 160 | wave_1_per_point4=yp= cos(n) * (cos(n*(t1*3+1))*0.5+0.5); |
| 161 | wave_1_per_point5=zp= 0; |
| 162 | wave_1_per_point6= |
| 163 | wave_1_per_point7=ang=n*16*t2 + n; |
| 164 | wave_1_per_point8=sang=sin(ang);cang=cos(ang); |
| 165 | wave_1_per_point9=xq=xp; |
| 166 | wave_1_per_point10=yq=yp*sang + zp*cang; |
| 167 | wave_1_per_point11=zq=yp*cang - zp*sang; |
| 168 | wave_1_per_point12=xp=xq;yp=yq;zp=zq; |
| 169 | wave_1_per_point13= |
| 170 | wave_1_per_point14= |
| 171 | wave_1_per_point15=ang=time*0.2; |
| 172 | wave_1_per_point16=sang=sin(ang);cang=cos(ang); |
| 173 | wave_1_per_point17=xq=xp; |
| 174 | wave_1_per_point18=yq=yp*sang + zp*cang; |
| 175 | wave_1_per_point19=zq=yp*cang - zp*sang; |
| 176 | wave_1_per_point20=xp=xq;yp=yq;zp=zq; |
| 177 | wave_1_per_point21= |
| 178 | wave_1_per_point22=ang=time*0.11; |
| 179 | wave_1_per_point23=sang=sin(ang);cang=cos(ang); |
| 180 | wave_1_per_point24=xq=xp*sang + zp*cang; |
| 181 | wave_1_per_point25=yq=yp; |
| 182 | wave_1_per_point26=zq=xp*cang - zp*sang; |
| 183 | wave_1_per_point27=xp=xq;yp=yq;zp=zq; |
| 184 | wave_1_per_point28= |
| 185 | wave_1_per_point29= |
| 186 | wave_1_per_point30=zp=zp+4.1; |
| 187 | wave_1_per_point31=x=-xp/zp + 0.5; |
| 188 | wave_1_per_point32=y=yp/zp*1.333 + 0.5; |
| 189 | wave_1_per_point33= |
| 190 | wave_1_per_point34=s=sample*2 + time; |
| 191 | wave_1_per_point35=rr= s - int(s); |
| 192 | wave_1_per_point36=rr=rr*2; |
| 193 | wave_1_per_point37=rr= if(above(rr,1), 1-rr , rr); |
| 194 | wave_1_per_point38=r=rr; |
| 195 | wave_1_per_point39= |
| 196 | wave_1_per_point40=s=sample*2.3 + time; |
| 197 | wave_1_per_point41=gg= s - int(s); |
| 198 | wave_1_per_point42=gg=gg*2; |
| 199 | wave_1_per_point43=gg= if(above(gg,1), 1-gg , gg); |
| 200 | wave_1_per_point44=g=gg; |
| 201 | wave_1_per_point45= |
| 202 | wave_1_per_point46=s=sample*2.6 + time; |
| 203 | wave_1_per_point47=bb= s - int(s); |
| 204 | wave_1_per_point48=bb=bb*2; |
| 205 | wave_1_per_point49=bb= if(above(bb,1), 1-bb , bb); |
| 206 | wave_1_per_point50=b=bb |
| 207 | wavecode_2_enabled=0 |
| 208 | wavecode_2_samples=512 |
| 209 | wavecode_2_sep=0 |
| 210 | wavecode_2_bSpectrum=0 |
| 211 | wavecode_2_bUseDots=0 |
| 212 | wavecode_2_bDrawThick=0 |
| 213 | wavecode_2_bAdditive=0 |
| 214 | wavecode_2_scaling=1.00000 |
| 215 | wavecode_2_smoothing=0.50000 |
| 216 | wavecode_2_r=1.000 |
| 217 | wavecode_2_g=1.000 |
| 218 | wavecode_2_b=1.000 |
| 219 | wavecode_2_a=1.000 |
| 220 | wavecode_3_enabled=0 |
| 221 | wavecode_3_samples=512 |
| 222 | wavecode_3_sep=0 |
| 223 | wavecode_3_bSpectrum=0 |
| 224 | wavecode_3_bUseDots=0 |
| 225 | wavecode_3_bDrawThick=0 |
| 226 | wavecode_3_bAdditive=0 |
| 227 | wavecode_3_scaling=1.00000 |
| 228 | wavecode_3_smoothing=0.50000 |
| 229 | wavecode_3_r=1.000 |
| 230 | wavecode_3_g=1.000 |
| 231 | wavecode_3_b=1.000 |
| 232 | wavecode_3_a=1.000 |
| 233 | shapecode_0_enabled=0 |
| 234 | shapecode_0_sides=4 |
| 235 | shapecode_0_additive=0 |
| 236 | shapecode_0_thickOutline=0 |
| 237 | shapecode_0_textured=0 |
| 238 | shapecode_0_num_inst=1 |
| 239 | shapecode_0_x=0.500 |
| 240 | shapecode_0_y=0.500 |
| 241 | shapecode_0_rad=0.10000 |
| 242 | shapecode_0_ang=0.00000 |
| 243 | shapecode_0_tex_ang=0.00000 |
| 244 | shapecode_0_tex_zoom=1.00000 |
| 245 | shapecode_0_r=1.000 |
| 246 | shapecode_0_g=1.000 |
| 247 | shapecode_0_b=1.000 |
| 248 | shapecode_0_a=1.000 |
| 249 | shapecode_0_r2=0.600 |
| 250 | shapecode_0_g2=0.700 |
| 251 | shapecode_0_b2=1.000 |
| 252 | shapecode_0_a2=0.000 |
| 253 | shapecode_0_border_r=1.000 |
| 254 | shapecode_0_border_g=1.000 |
| 255 | shapecode_0_border_b=1.000 |
| 256 | shapecode_0_border_a=0.100 |
| 257 | shapecode_1_enabled=0 |
| 258 | shapecode_1_sides=4 |
| 259 | shapecode_1_additive=0 |
| 260 | shapecode_1_thickOutline=0 |
| 261 | shapecode_1_textured=0 |
| 262 | shapecode_1_num_inst=1 |
| 263 | shapecode_1_x=0.500 |
| 264 | shapecode_1_y=0.500 |
| 265 | shapecode_1_rad=0.10000 |
| 266 | shapecode_1_ang=0.00000 |
| 267 | shapecode_1_tex_ang=0.00000 |
| 268 | shapecode_1_tex_zoom=1.00000 |
| 269 | shapecode_1_r=1.000 |
| 270 | shapecode_1_g=1.000 |
| 271 | shapecode_1_b=1.000 |
| 272 | shapecode_1_a=1.000 |
| 273 | shapecode_1_r2=0.600 |
| 274 | shapecode_1_g2=0.700 |
| 275 | shapecode_1_b2=1.000 |
| 276 | shapecode_1_a2=0.000 |
| 277 | shapecode_1_border_r=1.000 |
| 278 | shapecode_1_border_g=1.000 |
| 279 | shapecode_1_border_b=1.000 |
| 280 | shapecode_1_border_a=0.100 |
| 281 | shapecode_2_enabled=0 |
| 282 | shapecode_2_sides=4 |
| 283 | shapecode_2_additive=0 |
| 284 | shapecode_2_thickOutline=0 |
| 285 | shapecode_2_textured=0 |
| 286 | shapecode_2_num_inst=1 |
| 287 | shapecode_2_x=0.500 |
| 288 | shapecode_2_y=0.500 |
| 289 | shapecode_2_rad=0.10000 |
| 290 | shapecode_2_ang=0.00000 |
| 291 | shapecode_2_tex_ang=0.00000 |
| 292 | shapecode_2_tex_zoom=1.00000 |
| 293 | shapecode_2_r=1.000 |
| 294 | shapecode_2_g=1.000 |
| 295 | shapecode_2_b=1.000 |
| 296 | shapecode_2_a=1.000 |
| 297 | shapecode_2_r2=0.600 |
| 298 | shapecode_2_g2=0.700 |
| 299 | shapecode_2_b2=1.000 |
| 300 | shapecode_2_a2=0.000 |
| 301 | shapecode_2_border_r=1.000 |
| 302 | shapecode_2_border_g=1.000 |
| 303 | shapecode_2_border_b=1.000 |
| 304 | shapecode_2_border_a=0.100 |
| 305 | shapecode_3_enabled=0 |
| 306 | shapecode_3_sides=4 |
| 307 | shapecode_3_additive=0 |
| 308 | shapecode_3_thickOutline=0 |
| 309 | shapecode_3_textured=0 |
| 310 | shapecode_3_num_inst=1 |
| 311 | shapecode_3_x=0.500 |
| 312 | shapecode_3_y=0.500 |
| 313 | shapecode_3_rad=0.10000 |
| 314 | shapecode_3_ang=0.00000 |
| 315 | shapecode_3_tex_ang=0.00000 |
| 316 | shapecode_3_tex_zoom=1.00000 |
| 317 | shapecode_3_r=1.000 |
| 318 | shapecode_3_g=1.000 |
| 319 | shapecode_3_b=1.000 |
| 320 | shapecode_3_a=1.000 |
| 321 | shapecode_3_r2=0.500 |
| 322 | shapecode_3_g2=0.700 |
| 323 | shapecode_3_b2=1.000 |
| 324 | shapecode_3_a2=0.000 |
| 325 | shapecode_3_border_r=1.000 |
| 326 | shapecode_3_border_g=1.000 |
| 327 | shapecode_3_border_b=1.000 |
| 328 | shapecode_3_border_a=0.100 |
| 329 | per_frame_init_1=x1 = 0.5; |
| 330 | per_frame_init_2=x2 = 0.51; |
| 331 | per_frame_init_3= |
| 332 | per_frame_init_4=y2 = 0.9; |
| 333 | per_frame_init_5=y1 = 0.7; |
| 334 | per_frame_init_6= |
| 335 | per_frame_init_7=x3 = 0.8; |
| 336 | per_frame_init_8=y3 = 0.5; |
| 337 | per_frame_init_9= |
| 338 | per_frame_init_10=x4 = 0.2; |
| 339 | per_frame_init_11=y4 = 0.5; |
| 340 | per_frame_init_12= |
| 341 | per_frame_init_13= |
| 342 | per_frame_init_14=ax1 = 0; |
| 343 | per_frame_init_15=ay1 = 0; |
| 344 | per_frame_init_16=ax2 = 0; |
| 345 | per_frame_init_17=ay2 = 0; |
| 346 | per_frame_init_18=ax3 = 0; |
| 347 | per_frame_init_19=ay3 = 0; |
| 348 | per_frame_init_20= |
| 349 | per_frame_init_21=vx1 = 0.000; |
| 350 | per_frame_init_22=vx2 = 0.000; |
| 351 | per_frame_1= |
| 352 | per_frame_2=sx=1+.01*(8*bass%8)*equal(time%(int(24-2*bass)),0); |
| 353 | per_frame_3=sy=1+.01*(8*mid%8) *equal(time%(12+int(24-2*bass)),0); |
| 354 | per_frame_4= |
| 355 | per_frame_5=zoom = 1; |
| 356 | per_frame_6=warp = 0; |
| 357 | per_frame_7=wave_a = 0; |
| 358 | per_frame_8=//pogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogo |
| 359 | per_frame_9=r = 0.12+ max(bass_att,treb_att)*0.002; |
| 360 | per_frame_10=bounce = below(y1,r); |
| 361 | per_frame_11=y1 = y1+vy1;vy1 = if(bounce, abs(vy1)*0.94 + (r-y1)*0.1, vy1-0.0003*60/fps); |
| 362 | per_frame_12=bounce = below(x1,r);x1 = x1+vx1;vx1 = if(bounce, abs(vx1)*0.94 + (r-x1)*0.1, vx1); |
| 363 | per_frame_13=bounce = above(x1,1-r);vx1 = if(bounce, - abs(vx1)*0.94 + (1-r-x1)*0.04, vx1); |
| 364 | per_frame_14=bounce = below(y2,r);y2 = y2 + vy2;vy2 = if(bounce,abs(vy2)*0.94+(r-y2)*.1, vy2-0.0003*60/fps); |
| 365 | per_frame_15=bounce = below(x2,r);x2 = x2+ vx2;vx2 = if(bounce, abs(vx2)*0.94 + (r-x2)*0.1, vx2); |
| 366 | per_frame_16=bounce = above(x2,1-r);vx2 = if(bounce, - abs(vx2)*0.94 + (1-r-x2)*0.1, vx2); |
| 367 | per_frame_17=bounce = below(y3,r);y3 = y3 + vy3;vy3 = if(bounce,abs(vy3)*0.94+(r-y3)*.1, vy3-0.0003*60/fps); |
| 368 | per_frame_18=bounce = below(x3,r);x3 = x3+ vx3;vx3 = if(bounce, abs(vx3)*0.94 + (r-x3)*0.1, vx3); |
| 369 | per_frame_19=bounce = above(x3,1-r);vx3 = if(bounce, - abs(vx3)*0.94 + (1-r-x3)*0.1, vx3); |
| 370 | per_frame_20=bounce = below(y4,r);y4 = y4 + vy4;vy4 = if(bounce,abs(vy4)*0.94+(r-y4)*.1, vy4-0.0003*60/fps); |
| 371 | per_frame_21=bounce = below(x4,r);x4 = x4+ vx4;vx4 = if(bounce, abs(vx4)*0.94 + (r-x4)*0.1, vx4); |
| 372 | per_frame_22=bounce = above(x4,1-r);vx4 = if(bounce, - abs(vx4)*0.94 + (1-r-x4)*0.1, vx4); |
| 373 | per_frame_23=bounce = below( sqrt( sqr(x1+vx1-x2-vx2) + sqr(y1+vy1-y2-vy2)), 2*r); |
| 374 | per_frame_24=ref_ang = atan2(x2-x1,y2-y1)+asin(1); // common tangent |
| 375 | per_frame_25=v1 = sqrt(vx1*vx1+vy1*vy1);v2 = sqrt(vx2*vx2+vy2*vy2);w1 = atan2(vx1,vy1);w2 = atan2(vx2,vy2); |
| 376 | per_frame_26=vx1 = if(bounce,sin(ref_ang)*v1*cos(w1-ref_ang) + sin(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vx1); |
| 377 | per_frame_27=vy1 = if(bounce,cos(ref_ang)*v1*cos(w1-ref_ang) + cos(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vy1); |
| 378 | per_frame_28=vx2 = if(bounce,sin(ref_ang)*v2*cos(w2-ref_ang) + sin(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vx2); |
| 379 | per_frame_29=vy2 = if(bounce,cos(ref_ang)*v2*cos(w2-ref_ang) + cos(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vy2); |
| 380 | per_frame_30=bounce = below( sqrt( sqr(x1+vx1-x3-vx3) + sqr(y1+vy1-y3-vy3)), 2*r); |
| 381 | per_frame_31=ref_ang = atan2(x3-x1,y3-y1)+asin(1); // common tangent |
| 382 | per_frame_32=v1 = sqrt(vx1*vx1+vy1*vy1);v2 = sqrt(vx3*vx3+vy3*vy3);w1 = atan2(vx1,vy1);w2 = atan2(vx3,vy3); |
| 383 | per_frame_33=vx1 = if(bounce,sin(ref_ang)*v1*cos(w1-ref_ang) + sin(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vx1); |
| 384 | per_frame_34=vy1 = if(bounce,cos(ref_ang)*v1*cos(w1-ref_ang) + cos(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vy1); |
| 385 | per_frame_35=vx3 = if(bounce,sin(ref_ang)*v2*cos(w2-ref_ang) + sin(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vx3); |
| 386 | per_frame_36=vy3 = if(bounce,cos(ref_ang)*v2*cos(w2-ref_ang) + cos(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vy3); |
| 387 | per_frame_37=bounce = below( sqrt( sqr(x2+vx2-x3-vx3) + sqr(y2+vy2-y3-vy3)), 2*r); |
| 388 | per_frame_38=ref_ang = atan2(x3-x2,y3-y2)+asin(1); // common tangent |
| 389 | per_frame_39=v1 = sqrt(vx2*vx2+vy2*vy2);v2 = sqrt(vx3*vx3+vy3*vy3);w1 = atan2(vx2,vy2);w2 = atan2(vx3,vy3); |
| 390 | per_frame_40=vx2 = if(bounce,sin(ref_ang)*v1*cos(w1-ref_ang) + sin(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vx2); |
| 391 | per_frame_41=vy2 = if(bounce,cos(ref_ang)*v1*cos(w1-ref_ang) + cos(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vy2); |
| 392 | per_frame_42=vx3 = if(bounce,sin(ref_ang)*v2*cos(w2-ref_ang) + sin(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vx3); |
| 393 | per_frame_43=vy3 = if(bounce,cos(ref_ang)*v2*cos(w2-ref_ang) + cos(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vy3); |
| 394 | per_frame_44=bounce = below( sqrt( sqr(x1+vx1-x4-vx4) + sqr(y1+vy1-y4-vy4)), 2*r); |
| 395 | per_frame_45=ref_ang = atan2(x4-x1,y4-y1)+asin(1); // common tangent |
| 396 | per_frame_46=v1 = sqrt(vx1*vx1+vy1*vy1);v2 = sqrt(vx4*vx4+vy4*vy4);w1 = atan2(vx1,vy1);w2 = atan2(vx4,vy4); |
| 397 | per_frame_47=vx1 = if(bounce,sin(ref_ang)*v1*cos(w1-ref_ang) + sin(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vx1); |
| 398 | per_frame_48=vy1 = if(bounce,cos(ref_ang)*v1*cos(w1-ref_ang) + cos(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vy1); |
| 399 | per_frame_49=vx4 = if(bounce,sin(ref_ang)*v2*cos(w2-ref_ang) + sin(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vx4); |
| 400 | per_frame_50=vy4 = if(bounce,cos(ref_ang)*v2*cos(w2-ref_ang) + cos(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vy4); |
| 401 | per_frame_51=bounce = below( sqrt( sqr(x2+vx2-x4-vx4) + sqr(y2+vy2-y4-vy4)), 2*r); |
| 402 | per_frame_52=ref_ang = atan2(x4-x2,y4-y2)+asin(1); // common tangent |
| 403 | per_frame_53=v1 = sqrt(vx2*vx2+vy2*vy2);v2 = sqrt(vx4*vx4+vy4*vy4);w1 = atan2(vx2,vy2);w2 = atan2(vx4,vy4); |
| 404 | per_frame_54=vx2 = if(bounce,sin(ref_ang)*v1*cos(w1-ref_ang) + sin(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vx2); |
| 405 | per_frame_55=vy2 = if(bounce,cos(ref_ang)*v1*cos(w1-ref_ang) + cos(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vy2); |
| 406 | per_frame_56=vx4 = if(bounce,sin(ref_ang)*v2*cos(w2-ref_ang) + sin(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vx4); |
| 407 | per_frame_57=vy4 = if(bounce,cos(ref_ang)*v2*cos(w2-ref_ang) + cos(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vy4); |
| 408 | per_frame_58=bounce = below( sqrt( sqr(x3+vx3-x4-vx4) + sqr(y3+vy3-y4-vy4)), 2*r); |
| 409 | per_frame_59=ref_ang = atan2(x4-x3,y4-y3)+asin(1); // common tangent |
| 410 | per_frame_60=v1 = sqrt(vx3*vx3+vy3*vy3);v2 = sqrt(vx4*vx4+vy4*vy4);w1 = atan2(vx3,vy3);w2 = atan2(vx4,vy4); |
| 411 | per_frame_61=vx3 = if(bounce,sin(ref_ang)*v1*cos(w1-ref_ang) + sin(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vx3); |
| 412 | per_frame_62=vy3 = if(bounce,cos(ref_ang)*v1*cos(w1-ref_ang) + cos(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vy3); |
| 413 | per_frame_63=vx4 = if(bounce,sin(ref_ang)*v2*cos(w2-ref_ang) + sin(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vx4); |
| 414 | per_frame_64=vy4 = if(bounce,cos(ref_ang)*v2*cos(w2-ref_ang) + cos(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vy4); |
| 415 | per_frame_65=//pogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogo |
| 416 | per_frame_66=q1 = aspectx; |
| 417 | per_frame_67=q2 = aspecty; |
| 418 | per_frame_68=q3 = x1; |
| 419 | per_frame_69=q4 = y1; |
| 420 | per_frame_70=q5 = r; |
| 421 | per_frame_71=q6 = x2; |
| 422 | per_frame_72=q7 = y2; |
| 423 | per_frame_73=q8 = r; |
| 424 | per_frame_74=q9 = x3; |
| 425 | per_frame_75=q10 = y3; |
| 426 | per_frame_76=q11 = r; |
| 427 | per_frame_77=q12 = x4; |
| 428 | per_frame_78=q13 = y4; |
| 429 | per_frame_79=q14 = r; |
| 430 | warp_1=`shader_body |
| 431 | warp_2=`{ |
| 432 | warp_3=` // sample previous frame |
| 433 | warp_4=` ret.xyz = tex2D( sampler_main, uv ).xyz; |
| 434 | warp_5=` |
| 435 | warp_6=` // take the difference between the crisp and blurred images, |
| 436 | warp_7=` // then add it back into the image. Creates spots and stripes over time. |
| 437 | warp_8=` float3 b = lerp(GetBlur2(uv),GetBlur1(uv),uv_orig.x);//GetBlur2(uv); |
| 438 | warp_9=` ret.xyz += (ret.xyz - b)*0.3 - (((bass+treb+mid-0.5)*.333)*.02); |
| 439 | warp_10=` ret.xyz *= 0.95; |
| 440 | warp_11=` |
| 441 | warp_12=` // add noise: |
| 442 | warp_13=` float2 dither_uv = uv_orig*texsize.xy*texsize_noise_lq.zw * 0.4 + rand_frame.xy; |
| 443 | warp_14=` ret.xyz += (tex2D(sampler_noise_lq, dither_uv).xyz-0.5)/256.0 * 122 * saturate(treb_att-1); |
| 444 | warp_15=` |
| 445 | warp_16=` // desaturate over time, to keep the globs white |
| 446 | warp_17=` ret.xyz = lerp(ret.xyz, lum(ret.xyz), 0.2); |
| 447 | warp_18=`} |
| 448 | comp_1=` |
| 449 | comp_2=`float2 rs, rs0, uv2, uv3,uv4,dz; |
| 450 | comp_3=`float3 noise, ret1, neu; |
| 451 | comp_4=`static float2 hor = float2 (texsize.z,0); |
| 452 | comp_5=`static float2 ver = float2 (0, texsize.w); |
| 453 | comp_6=` |
| 454 | comp_7=`shader_body { |
| 455 | comp_8=`float2 uv1 = (uv-.5 )*aspect.xy; |
| 456 | comp_9=` |
| 457 | comp_10=`float z = .1/uv1.y/uv1.x; |
| 458 | comp_11=` |
| 459 | comp_12=`rs0.x = uv1.x*z; |
| 460 | comp_13=`rs0.y = z; |
| 461 | comp_14=`rs.x = rs0.x + time/2; |
| 462 | comp_15=`rs.y = rs0.y + time/2; |
| 463 | comp_16=` |
| 464 | comp_17=`noise = lum(tex2D(sampler_noise_hq,rs/2)); |
| 465 | comp_18=`noise = noise-.55; |
| 466 | comp_19=` |
| 467 | comp_20=`float3 mask = saturate(24*(uv1.y)) ; |
| 468 | comp_21=` |
| 469 | comp_22=` |
| 470 | comp_23=` |
| 471 | comp_24=`float dist = 1; |
| 472 | comp_25=`float inten = 1; |
| 473 | comp_26=`ret1 = 0; |
| 474 | comp_27=`int anz = 4; |
| 475 | comp_28=`int n = 1; |
| 476 | comp_29=`dz = 0; |
| 477 | comp_30=`while (n <= anz) { |
| 478 | comp_31=` dist = 1-frac(1.0/anz*n+time/18); //evtl sqrt !; |
| 479 | comp_32=` |
| 480 | comp_33=` inten = sqrt(dist)*(1-dist)*4; |
| 481 | comp_34=` uv = uv1*aspect.yx; |
| 482 | comp_35=` uv3 = uv*dist +.5 + float2(0.02*((n%2)-.5),.05); |
| 483 | comp_36=` |
| 484 | comp_37=` dz.x += inten*(2*lum(GetPixel(uv3+hor))- 2*lum(GetPixel(uv3-hor))); |
| 485 | comp_38=` dz.y += inten*(2*lum(GetPixel(uv3+ver))- 2*lum(GetPixel(uv3-ver))); |
| 486 | comp_39=` neu = GetPixel(uv3); |
| 487 | comp_40=` ret1 = max(ret1,neu*inten); |
| 488 | comp_41=`n++; |
| 489 | comp_42=`} |
| 490 | comp_43=` |
| 491 | comp_44=`dz = (dz*(.5+rand_preset.z)); |
| 492 | comp_45=`float2 pos = 2*(rand_preset.xy-.5); |
| 493 | comp_46=`uv1 = 4*uv1; |
| 494 | comp_47=`float2 uv_rr = sin(uv1 + dz + pos); |
| 495 | comp_48=`float2 uv_gg = sin(uv1 + dz*1.4 + pos); |
| 496 | comp_49=`float2 uv_bb = sin(uv1 + dz*1.8 +pos); |
| 497 | comp_50=`float3 size = float3 (.01,.01,.01) * (1+rand_preset.xyz/2)*(.5+rand_preset.y); |
| 498 | comp_51=`float3 mus = float3(1/length(uv_rr),1/length(uv_gg),1/length(uv_bb))*size; |
| 499 | comp_52=` |
| 500 | comp_53=`ret = mus*((rand_preset.x-.5)*4*ret1+8*(1+rand_preset)) |
| 501 | comp_54=`- ret1.r *.5 + (ret1.g + ret1.b)/3 ; |
| 502 | comp_55=`ret *= 1+ret; |
| 503 | comp_56=`//ret = GetPixel(uv_orig+.5); |
| 504 | comp_57=`} |